package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_buff", desc = "海神岛-buff变更日志", autoSave = true, dataUpload = true, eventName = "seagod_buff", uploadCk = true, isCross = true)
public class LogCrossHsIslandBuff extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "guild_id")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "buffid", dataAttribute = "seagod_buffid")
    private int buffId;

    @FieldTypeAnnotation(desc = "类型，1：获得，2：消耗", dataAttribute = "seagod_bufftype")
    private int type;

    @FieldTypeAnnotation(desc = "变更次数", dataAttribute = "seagod_buffchange")
    private int changeTimes;

    @FieldTypeAnnotation(desc = "当前剩余生效次数", dataAttribute = "seagod_buffnum")
    private int times;

    public LogCrossHsIslandBuff(int activityId, int groupId, String unionId, long userId, int buffId, int type, int changeTimes, int times) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.buffId = buffId;
        this.type = type;
        this.changeTimes = changeTimes;
        this.times = times;
    }


    @Override
    public long getUserId() {
        return userId;
    }

}
